<template>
  <view style="padding: 30upx 20upx">
    <view class="home_record record_list">
      <view class="list_wrapper">
        <view class="item_list" v-for="item in news" @click="jump(`pages/index/news_detail?id=${item.id}`)">
          <view class="left">
            <image class="item_img" :src="item.newsCover"></image>
          </view>
          <view class="right">
            <view class="item_title eclipse-1">{{item.newsName}}</view>
            <view class="item_content">{{item.newsDesc}}</view>
            <view class="item_date u-flex flex-between">
              <view>{{ item.createTime }}</view>
              <view>
                <u-icon name="eye" size="28" color="#999"></u-icon>
                <text class="u-p-l-10">{{item.lookNum}}</text>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  import {request} from "../../util/api";
  import mixins from "./mixins";
  export default {
  	mixins: [mixins]
  }
</script>

<style lang="scss" scoped>
  .record_list {
		.item_list {
			display: flex;
			padding-bottom: 30upx;
			margin-bottom: 30upx;
			border-bottom: 2upx solid #E5E5E5;
			.left {
				width: 200upx;
				height: 200rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				.item_img {
					width: 100%;
					height: 200upx;
					border-radius: 16upx;
				}
			}
			.right {
				flex: 1;
				margin-left: 30upx;
				width: 400upx;
				.item_title {
					color: #333;
					font-size: 28upx;
				}
				.item_content {
					color: #666;
					font-size: 26upx;
					margin-top: 20upx;
				}
				.item_date {
					color: #999;
					font-size: 24upx;
					margin-top: 30upx;
				}
			}
		}
	}
</style>
